Option Strict On
Option Explicit On 

Public Class UForeignKeyConstraint
    Inherits System.Windows.Forms.UserControl

#Region " Windows Form Designer generated code "

    Public Sub New()
        MyBase.New()

        'This call is required by the Windows Form Designer.
        InitializeComponent()

        'Add any initialization after the InitializeComponent() call

    End Sub

    'Form overrides dispose to clean up the component list.
    Protected Overloads Overrides Sub Dispose(ByVal disposing As Boolean)
        If disposing Then
            If Not (components Is Nothing) Then
                components.Dispose()
            End If
        End If
        MyBase.Dispose(disposing)
    End Sub

    'Required by the Windows Form Designer
    Private components As System.ComponentModel.IContainer

    'NOTE: The following procedure is required by the Windows Form Designer
    'It can be modified using the Windows Form Designer.  
    'Do not modify it using the code editor.
    Friend WithEvents lblParentTable As System.Windows.Forms.Label
    Friend WithEvents cboParentTable As System.Windows.Forms.ComboBox
    Friend WithEvents lblChildTable As System.Windows.Forms.Label
    Friend WithEvents cboChildTable As System.Windows.Forms.ComboBox
    Friend WithEvents lblUpdateRule As System.Windows.Forms.Label
    Friend WithEvents cboUpdateRule As System.Windows.Forms.ComboBox
    Friend WithEvents lblDeleteRule As System.Windows.Forms.Label
    Friend WithEvents cboDeleteRule As System.Windows.Forms.ComboBox
    Friend WithEvents lblAcceptRejectRule As System.Windows.Forms.Label
    Friend WithEvents cboAcceptRejectRule As System.Windows.Forms.ComboBox
    Friend WithEvents lblForeignKeyColumn As System.Windows.Forms.Label
    Friend WithEvents cboForeignKeyColumn As System.Windows.Forms.ComboBox
    Friend WithEvents lblKeyColumn As System.Windows.Forms.Label
    Friend WithEvents cboKeyColumn As System.Windows.Forms.ComboBox
    Friend WithEvents chKeyColumns As System.Windows.Forms.ColumnHeader
    Friend WithEvents btnAdd As System.Windows.Forms.Button
    Friend WithEvents btnRemove As System.Windows.Forms.Button
    Friend WithEvents gbKeys As System.Windows.Forms.GroupBox
    Friend WithEvents chForeignKeyColumns As System.Windows.Forms.ColumnHeader
    Friend WithEvents lblConstraintName As System.Windows.Forms.Label
    Friend WithEvents txtConstraintName As System.Windows.Forms.TextBox
    Friend WithEvents lvConstraint As System.Windows.Forms.ListView
    Friend WithEvents ErrorProvider1 As System.Windows.Forms.ErrorProvider
    <System.Diagnostics.DebuggerStepThrough()> Private Sub InitializeComponent()
        Dim resources As System.Resources.ResourceManager = New System.Resources.ResourceManager(GetType(UForeignKeyConstraint))
        Me.lblConstraintName = New System.Windows.Forms.Label
        Me.txtConstraintName = New System.Windows.Forms.TextBox
        Me.lblParentTable = New System.Windows.Forms.Label
        Me.cboParentTable = New System.Windows.Forms.ComboBox
        Me.lblChildTable = New System.Windows.Forms.Label
        Me.cboChildTable = New System.Windows.Forms.ComboBox
        Me.gbKeys = New System.Windows.Forms.GroupBox
        Me.btnRemove = New System.Windows.Forms.Button
        Me.btnAdd = New System.Windows.Forms.Button
        Me.cboForeignKeyColumn = New System.Windows.Forms.ComboBox
        Me.lblKeyColumn = New System.Windows.Forms.Label
        Me.cboKeyColumn = New System.Windows.Forms.ComboBox
        Me.lvConstraint = New System.Windows.Forms.ListView
        Me.chKeyColumns = New System.Windows.Forms.ColumnHeader
        Me.chForeignKeyColumns = New System.Windows.Forms.ColumnHeader
        Me.lblForeignKeyColumn = New System.Windows.Forms.Label
        Me.lblAcceptRejectRule = New System.Windows.Forms.Label
        Me.cboAcceptRejectRule = New System.Windows.Forms.ComboBox
        Me.lblDeleteRule = New System.Windows.Forms.Label
        Me.cboDeleteRule = New System.Windows.Forms.ComboBox
        Me.lblUpdateRule = New System.Windows.Forms.Label
        Me.cboUpdateRule = New System.Windows.Forms.ComboBox
        Me.ErrorProvider1 = New System.Windows.Forms.ErrorProvider
        Me.gbKeys.SuspendLayout()
        Me.SuspendLayout()
        '
        'lblConstraintName
        '
        Me.lblConstraintName.AccessibleDescription = resources.GetString("lblConstraintName.AccessibleDescription")
        Me.lblConstraintName.AccessibleName = resources.GetString("lblConstraintName.AccessibleName")
        Me.lblConstraintName.Anchor = CType(resources.GetObject("lblConstraintName.Anchor"), System.Windows.Forms.AnchorStyles)
        Me.lblConstraintName.AutoSize = CType(resources.GetObject("lblConstraintName.AutoSize"), Boolean)
        Me.lblConstraintName.Dock = CType(resources.GetObject("lblConstraintName.Dock"), System.Windows.Forms.DockStyle)
        Me.lblConstraintName.Enabled = CType(resources.GetObject("lblConstraintName.Enabled"), Boolean)
        Me.ErrorProvider1.SetError(Me.lblConstraintName, resources.GetString("lblConstraintName.Error"))
        Me.lblConstraintName.Font = CType(resources.GetObject("lblConstraintName.Font"), System.Drawing.Font)
        Me.ErrorProvider1.SetIconAlignment(Me.lblConstraintName, CType(resources.GetObject("lblConstraintName.IconAlignment"), System.Windows.Forms.ErrorIconAlignment))
        Me.ErrorProvider1.SetIconPadding(Me.lblConstraintName, CType(resources.GetObject("lblConstraintName.IconPadding"), Integer))
        Me.lblConstraintName.Image = CType(resources.GetObject("lblConstraintName.Image"), System.Drawing.Image)
        Me.lblConstraintName.ImageAlign = CType(resources.GetObject("lblConstraintName.ImageAlign"), System.Drawing.ContentAlignment)
        Me.lblConstraintName.ImageIndex = CType(resources.GetObject("lblConstraintName.ImageIndex"), Integer)
        Me.lblConstraintName.ImeMode = CType(resources.GetObject("lblConstraintName.ImeMode"), System.Windows.Forms.ImeMode)
        Me.lblConstraintName.Location = CType(resources.GetObject("lblConstraintName.Location"), System.Drawing.Point)
        Me.lblConstraintName.Name = "lblConstraintName"
        Me.lblConstraintName.RightToLeft = CType(resources.GetObject("lblConstraintName.RightToLeft"), System.Windows.Forms.RightToLeft)
        Me.lblConstraintName.Size = CType(resources.GetObject("lblConstraintName.Size"), System.Drawing.Size)
        Me.lblConstraintName.TabIndex = CType(resources.GetObject("lblConstraintName.TabIndex"), Integer)
        Me.lblConstraintName.Text = resources.GetString("lblConstraintName.Text")
        Me.lblConstraintName.TextAlign = CType(resources.GetObject("lblConstraintName.TextAlign"), System.Drawing.ContentAlignment)
        Me.lblConstraintName.Visible = CType(resources.GetObject("lblConstraintName.Visible"), Boolean)
        '
        'txtConstraintName
        '
        Me.txtConstraintName.AccessibleDescription = resources.GetString("txtConstraintName.AccessibleDescription")
        Me.txtConstraintName.AccessibleName = resources.GetString("txtConstraintName.AccessibleName")
        Me.txtConstraintName.Anchor = CType(resources.GetObject("txtConstraintName.Anchor"), System.Windows.Forms.AnchorStyles)
        Me.txtConstraintName.AutoSize = CType(resources.GetObject("txtConstraintName.AutoSize"), Boolean)
        Me.txtConstraintName.BackgroundImage = CType(resources.GetObject("txtConstraintName.BackgroundImage"), System.Drawing.Image)
        Me.txtConstraintName.Dock = CType(resources.GetObject("txtConstraintName.Dock"), System.Windows.Forms.DockStyle)
        Me.txtConstraintName.Enabled = CType(resources.GetObject("txtConstraintName.Enabled"), Boolean)
        Me.ErrorProvider1.SetError(Me.txtConstraintName, resources.GetString("txtConstraintName.Error"))
        Me.txtConstraintName.Font = CType(resources.GetObject("txtConstraintName.Font"), System.Drawing.Font)
        Me.ErrorProvider1.SetIconAlignment(Me.txtConstraintName, CType(resources.GetObject("txtConstraintName.IconAlignment"), System.Windows.Forms.ErrorIconAlignment))
        Me.ErrorProvider1.SetIconPadding(Me.txtConstraintName, CType(resources.GetObject("txtConstraintName.IconPadding"), Integer))
        Me.txtConstraintName.ImeMode = CType(resources.GetObject("txtConstraintName.ImeMode"), System.Windows.Forms.ImeMode)
        Me.txtConstraintName.Location = CType(resources.GetObject("txtConstraintName.Location"), System.Drawing.Point)
        Me.txtConstraintName.MaxLength = CType(resources.GetObject("txtConstraintName.MaxLength"), Integer)
        Me.txtConstraintName.Multiline = CType(resources.GetObject("txtConstraintName.Multiline"), Boolean)
        Me.txtConstraintName.Name = "txtConstraintName"
        Me.txtConstraintName.PasswordChar = CType(resources.GetObject("txtConstraintName.PasswordChar"), Char)
        Me.txtConstraintName.RightToLeft = CType(resources.GetObject("txtConstraintName.RightToLeft"), System.Windows.Forms.RightToLeft)
        Me.txtConstraintName.ScrollBars = CType(resources.GetObject("txtConstraintName.ScrollBars"), System.Windows.Forms.ScrollBars)
        Me.txtConstraintName.Size = CType(resources.GetObject("txtConstraintName.Size"), System.Drawing.Size)
        Me.txtConstraintName.TabIndex = CType(resources.GetObject("txtConstraintName.TabIndex"), Integer)
        Me.txtConstraintName.Text = resources.GetString("txtConstraintName.Text")
        Me.txtConstraintName.TextAlign = CType(resources.GetObject("txtConstraintName.TextAlign"), System.Windows.Forms.HorizontalAlignment)
        Me.txtConstraintName.Visible = CType(resources.GetObject("txtConstraintName.Visible"), Boolean)
        Me.txtConstraintName.WordWrap = CType(resources.GetObject("txtConstraintName.WordWrap"), Boolean)
        '
        'lblParentTable
        '
        Me.lblParentTable.AccessibleDescription = resources.GetString("lblParentTable.AccessibleDescription")
        Me.lblParentTable.AccessibleName = resources.GetString("lblParentTable.AccessibleName")
        Me.lblParentTable.Anchor = CType(resources.GetObject("lblParentTable.Anchor"), System.Windows.Forms.AnchorStyles)
        Me.lblParentTable.AutoSize = CType(resources.GetObject("lblParentTable.AutoSize"), Boolean)
        Me.lblParentTable.Dock = CType(resources.GetObject("lblParentTable.Dock"), System.Windows.Forms.DockStyle)
        Me.lblParentTable.Enabled = CType(resources.GetObject("lblParentTable.Enabled"), Boolean)
        Me.ErrorProvider1.SetError(Me.lblParentTable, resources.GetString("lblParentTable.Error"))
        Me.lblParentTable.Font = CType(resources.GetObject("lblParentTable.Font"), System.Drawing.Font)
        Me.ErrorProvider1.SetIconAlignment(Me.lblParentTable, CType(resources.GetObject("lblParentTable.IconAlignment"), System.Windows.Forms.ErrorIconAlignment))
        Me.ErrorProvider1.SetIconPadding(Me.lblParentTable, CType(resources.GetObject("lblParentTable.IconPadding"), Integer))
        Me.lblParentTable.Image = CType(resources.GetObject("lblParentTable.Image"), System.Drawing.Image)
        Me.lblParentTable.ImageAlign = CType(resources.GetObject("lblParentTable.ImageAlign"), System.Drawing.ContentAlignment)
        Me.lblParentTable.ImageIndex = CType(resources.GetObject("lblParentTable.ImageIndex"), Integer)
        Me.lblParentTable.ImeMode = CType(resources.GetObject("lblParentTable.ImeMode"), System.Windows.Forms.ImeMode)
        Me.lblParentTable.Location = CType(resources.GetObject("lblParentTable.Location"), System.Drawing.Point)
        Me.lblParentTable.Name = "lblParentTable"
        Me.lblParentTable.RightToLeft = CType(resources.GetObject("lblParentTable.RightToLeft"), System.Windows.Forms.RightToLeft)
        Me.lblParentTable.Size = CType(resources.GetObject("lblParentTable.Size"), System.Drawing.Size)
        Me.lblParentTable.TabIndex = CType(resources.GetObject("lblParentTable.TabIndex"), Integer)
        Me.lblParentTable.Text = resources.GetString("lblParentTable.Text")
        Me.lblParentTable.TextAlign = CType(resources.GetObject("lblParentTable.TextAlign"), System.Drawing.ContentAlignment)
        Me.lblParentTable.Visible = CType(resources.GetObject("lblParentTable.Visible"), Boolean)
        '
        'cboParentTable
        '
        Me.cboParentTable.AccessibleDescription = resources.GetString("cboParentTable.AccessibleDescription")
        Me.cboParentTable.AccessibleName = resources.GetString("cboParentTable.AccessibleName")
        Me.cboParentTable.Anchor = CType(resources.GetObject("cboParentTable.Anchor"), System.Windows.Forms.AnchorStyles)
        Me.cboParentTable.BackgroundImage = CType(resources.GetObject("cboParentTable.BackgroundImage"), System.Drawing.Image)
        Me.cboParentTable.DisplayMember = "Name"
        Me.cboParentTable.Dock = CType(resources.GetObject("cboParentTable.Dock"), System.Windows.Forms.DockStyle)
        Me.cboParentTable.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList
        Me.cboParentTable.Enabled = CType(resources.GetObject("cboParentTable.Enabled"), Boolean)
        Me.ErrorProvider1.SetError(Me.cboParentTable, resources.GetString("cboParentTable.Error"))
        Me.cboParentTable.Font = CType(resources.GetObject("cboParentTable.Font"), System.Drawing.Font)
        Me.ErrorProvider1.SetIconAlignment(Me.cboParentTable, CType(resources.GetObject("cboParentTable.IconAlignment"), System.Windows.Forms.ErrorIconAlignment))
        Me.ErrorProvider1.SetIconPadding(Me.cboParentTable, CType(resources.GetObject("cboParentTable.IconPadding"), Integer))
        Me.cboParentTable.ImeMode = CType(resources.GetObject("cboParentTable.ImeMode"), System.Windows.Forms.ImeMode)
        Me.cboParentTable.IntegralHeight = CType(resources.GetObject("cboParentTable.IntegralHeight"), Boolean)
        Me.cboParentTable.ItemHeight = CType(resources.GetObject("cboParentTable.ItemHeight"), Integer)
        Me.cboParentTable.Location = CType(resources.GetObject("cboParentTable.Location"), System.Drawing.Point)
        Me.cboParentTable.MaxDropDownItems = CType(resources.GetObject("cboParentTable.MaxDropDownItems"), Integer)
        Me.cboParentTable.MaxLength = CType(resources.GetObject("cboParentTable.MaxLength"), Integer)
        Me.cboParentTable.Name = "cboParentTable"
        Me.cboParentTable.RightToLeft = CType(resources.GetObject("cboParentTable.RightToLeft"), System.Windows.Forms.RightToLeft)
        Me.cboParentTable.Size = CType(resources.GetObject("cboParentTable.Size"), System.Drawing.Size)
        Me.cboParentTable.TabIndex = CType(resources.GetObject("cboParentTable.TabIndex"), Integer)
        Me.cboParentTable.Text = resources.GetString("cboParentTable.Text")
        Me.cboParentTable.ValueMember = "Name"
        Me.cboParentTable.Visible = CType(resources.GetObject("cboParentTable.Visible"), Boolean)
        '
        'lblChildTable
        '
        Me.lblChildTable.AccessibleDescription = resources.GetString("lblChildTable.AccessibleDescription")
        Me.lblChildTable.AccessibleName = resources.GetString("lblChildTable.AccessibleName")
        Me.lblChildTable.Anchor = CType(resources.GetObject("lblChildTable.Anchor"), System.Windows.Forms.AnchorStyles)
        Me.lblChildTable.AutoSize = CType(resources.GetObject("lblChildTable.AutoSize"), Boolean)
        Me.lblChildTable.Dock = CType(resources.GetObject("lblChildTable.Dock"), System.Windows.Forms.DockStyle)
        Me.lblChildTable.Enabled = CType(resources.GetObject("lblChildTable.Enabled"), Boolean)
        Me.ErrorProvider1.SetError(Me.lblChildTable, resources.GetString("lblChildTable.Error"))
        Me.lblChildTable.Font = CType(resources.GetObject("lblChildTable.Font"), System.Drawing.Font)
        Me.ErrorProvider1.SetIconAlignment(Me.lblChildTable, CType(resources.GetObject("lblChildTable.IconAlignment"), System.Windows.Forms.ErrorIconAlignment))
        Me.ErrorProvider1.SetIconPadding(Me.lblChildTable, CType(resources.GetObject("lblChildTable.IconPadding"), Integer))
        Me.lblChildTable.Image = CType(resources.GetObject("lblChildTable.Image"), System.Drawing.Image)
        Me.lblChildTable.ImageAlign = CType(resources.GetObject("lblChildTable.ImageAlign"), System.Drawing.ContentAlignment)
        Me.lblChildTable.ImageIndex = CType(resources.GetObject("lblChildTable.ImageIndex"), Integer)
        Me.lblChildTable.ImeMode = CType(resources.GetObject("lblChildTable.ImeMode"), System.Windows.Forms.ImeMode)
        Me.lblChildTable.Location = CType(resources.GetObject("lblChildTable.Location"), System.Drawing.Point)
        Me.lblChildTable.Name = "lblChildTable"
        Me.lblChildTable.RightToLeft = CType(resources.GetObject("lblChildTable.RightToLeft"), System.Windows.Forms.RightToLeft)
        Me.lblChildTable.Size = CType(resources.GetObject("lblChildTable.Size"), System.Drawing.Size)
        Me.lblChildTable.TabIndex = CType(resources.GetObject("lblChildTable.TabIndex"), Integer)
        Me.lblChildTable.Text = resources.GetString("lblChildTable.Text")
        Me.lblChildTable.TextAlign = CType(resources.GetObject("lblChildTable.TextAlign"), System.Drawing.ContentAlignment)
        Me.lblChildTable.Visible = CType(resources.GetObject("lblChildTable.Visible"), Boolean)
        '
        'cboChildTable
        '
        Me.cboChildTable.AccessibleDescription = resources.GetString("cboChildTable.AccessibleDescription")
        Me.cboChildTable.AccessibleName = resources.GetString("cboChildTable.AccessibleName")
        Me.cboChildTable.Anchor = CType(resources.GetObject("cboChildTable.Anchor"), System.Windows.Forms.AnchorStyles)
        Me.cboChildTable.BackgroundImage = CType(resources.GetObject("cboChildTable.BackgroundImage"), System.Drawing.Image)
        Me.cboChildTable.DisplayMember = "Name"
        Me.cboChildTable.Dock = CType(resources.GetObject("cboChildTable.Dock"), System.Windows.Forms.DockStyle)
        Me.cboChildTable.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList
        Me.cboChildTable.Enabled = CType(resources.GetObject("cboChildTable.Enabled"), Boolean)
        Me.ErrorProvider1.SetError(Me.cboChildTable, resources.GetString("cboChildTable.Error"))
        Me.cboChildTable.Font = CType(resources.GetObject("cboChildTable.Font"), System.Drawing.Font)
        Me.ErrorProvider1.SetIconAlignment(Me.cboChildTable, CType(resources.GetObject("cboChildTable.IconAlignment"), System.Windows.Forms.ErrorIconAlignment))
        Me.ErrorProvider1.SetIconPadding(Me.cboChildTable, CType(resources.GetObject("cboChildTable.IconPadding"), Integer))
        Me.cboChildTable.ImeMode = CType(resources.GetObject("cboChildTable.ImeMode"), System.Windows.Forms.ImeMode)
        Me.cboChildTable.IntegralHeight = CType(resources.GetObject("cboChildTable.IntegralHeight"), Boolean)
        Me.cboChildTable.ItemHeight = CType(resources.GetObject("cboChildTable.ItemHeight"), Integer)
        Me.cboChildTable.Location = CType(resources.GetObject("cboChildTable.Location"), System.Drawing.Point)
        Me.cboChildTable.MaxDropDownItems = CType(resources.GetObject("cboChildTable.MaxDropDownItems"), Integer)
        Me.cboChildTable.MaxLength = CType(resources.GetObject("cboChildTable.MaxLength"), Integer)
        Me.cboChildTable.Name = "cboChildTable"
        Me.cboChildTable.RightToLeft = CType(resources.GetObject("cboChildTable.RightToLeft"), System.Windows.Forms.RightToLeft)
        Me.cboChildTable.Size = CType(resources.GetObject("cboChildTable.Size"), System.Drawing.Size)
        Me.cboChildTable.TabIndex = CType(resources.GetObject("cboChildTable.TabIndex"), Integer)
        Me.cboChildTable.Text = resources.GetString("cboChildTable.Text")
        Me.cboChildTable.ValueMember = "Name"
        Me.cboChildTable.Visible = CType(resources.GetObject("cboChildTable.Visible"), Boolean)
        '
        'gbKeys
        '
        Me.gbKeys.AccessibleDescription = resources.GetString("gbKeys.AccessibleDescription")
        Me.gbKeys.AccessibleName = resources.GetString("gbKeys.AccessibleName")
        Me.gbKeys.Anchor = CType(resources.GetObject("gbKeys.Anchor"), System.Windows.Forms.AnchorStyles)
        Me.gbKeys.BackgroundImage = CType(resources.GetObject("gbKeys.BackgroundImage"), System.Drawing.Image)
        Me.gbKeys.Controls.Add(Me.btnRemove)
        Me.gbKeys.Controls.Add(Me.btnAdd)
        Me.gbKeys.Controls.Add(Me.cboForeignKeyColumn)
        Me.gbKeys.Controls.Add(Me.lblKeyColumn)
        Me.gbKeys.Controls.Add(Me.cboKeyColumn)
        Me.gbKeys.Controls.Add(Me.lvConstraint)
        Me.gbKeys.Controls.Add(Me.lblForeignKeyColumn)
        Me.gbKeys.Controls.Add(Me.lblParentTable)
        Me.gbKeys.Controls.Add(Me.cboParentTable)
        Me.gbKeys.Controls.Add(Me.lblChildTable)
        Me.gbKeys.Controls.Add(Me.cboChildTable)
        Me.gbKeys.Dock = CType(resources.GetObject("gbKeys.Dock"), System.Windows.Forms.DockStyle)
        Me.gbKeys.Enabled = CType(resources.GetObject("gbKeys.Enabled"), Boolean)
        Me.ErrorProvider1.SetError(Me.gbKeys, resources.GetString("gbKeys.Error"))
        Me.gbKeys.Font = CType(resources.GetObject("gbKeys.Font"), System.Drawing.Font)
        Me.ErrorProvider1.SetIconAlignment(Me.gbKeys, CType(resources.GetObject("gbKeys.IconAlignment"), System.Windows.Forms.ErrorIconAlignment))
        Me.ErrorProvider1.SetIconPadding(Me.gbKeys, CType(resources.GetObject("gbKeys.IconPadding"), Integer))
        Me.gbKeys.ImeMode = CType(resources.GetObject("gbKeys.ImeMode"), System.Windows.Forms.ImeMode)
        Me.gbKeys.Location = CType(resources.GetObject("gbKeys.Location"), System.Drawing.Point)
        Me.gbKeys.Name = "gbKeys"
        Me.gbKeys.RightToLeft = CType(resources.GetObject("gbKeys.RightToLeft"), System.Windows.Forms.RightToLeft)
        Me.gbKeys.Size = CType(resources.GetObject("gbKeys.Size"), System.Drawing.Size)
        Me.gbKeys.TabIndex = CType(resources.GetObject("gbKeys.TabIndex"), Integer)
        Me.gbKeys.TabStop = False
        Me.gbKeys.Text = resources.GetString("gbKeys.Text")
        Me.gbKeys.Visible = CType(resources.GetObject("gbKeys.Visible"), Boolean)
        '
        'btnRemove
        '
        Me.btnRemove.AccessibleDescription = resources.GetString("btnRemove.AccessibleDescription")
        Me.btnRemove.AccessibleName = resources.GetString("btnRemove.AccessibleName")
        Me.btnRemove.Anchor = CType(resources.GetObject("btnRemove.Anchor"), System.Windows.Forms.AnchorStyles)
        Me.btnRemove.BackgroundImage = CType(resources.GetObject("btnRemove.BackgroundImage"), System.Drawing.Image)
        Me.btnRemove.Dock = CType(resources.GetObject("btnRemove.Dock"), System.Windows.Forms.DockStyle)
        Me.btnRemove.Enabled = CType(resources.GetObject("btnRemove.Enabled"), Boolean)
        Me.ErrorProvider1.SetError(Me.btnRemove, resources.GetString("btnRemove.Error"))
        Me.btnRemove.FlatStyle = CType(resources.GetObject("btnRemove.FlatStyle"), System.Windows.Forms.FlatStyle)
        Me.btnRemove.Font = CType(resources.GetObject("btnRemove.Font"), System.Drawing.Font)
        Me.ErrorProvider1.SetIconAlignment(Me.btnRemove, CType(resources.GetObject("btnRemove.IconAlignment"), System.Windows.Forms.ErrorIconAlignment))
        Me.ErrorProvider1.SetIconPadding(Me.btnRemove, CType(resources.GetObject("btnRemove.IconPadding"), Integer))
        Me.btnRemove.Image = CType(resources.GetObject("btnRemove.Image"), System.Drawing.Image)
        Me.btnRemove.ImageAlign = CType(resources.GetObject("btnRemove.ImageAlign"), System.Drawing.ContentAlignment)
        Me.btnRemove.ImageIndex = CType(resources.GetObject("btnRemove.ImageIndex"), Integer)
        Me.btnRemove.ImeMode = CType(resources.GetObject("btnRemove.ImeMode"), System.Windows.Forms.ImeMode)
        Me.btnRemove.Location = CType(resources.GetObject("btnRemove.Location"), System.Drawing.Point)
        Me.btnRemove.Name = "btnRemove"
        Me.btnRemove.RightToLeft = CType(resources.GetObject("btnRemove.RightToLeft"), System.Windows.Forms.RightToLeft)
        Me.btnRemove.Size = CType(resources.GetObject("btnRemove.Size"), System.Drawing.Size)
        Me.btnRemove.TabIndex = CType(resources.GetObject("btnRemove.TabIndex"), Integer)
        Me.btnRemove.Text = resources.GetString("btnRemove.Text")
        Me.btnRemove.TextAlign = CType(resources.GetObject("btnRemove.TextAlign"), System.Drawing.ContentAlignment)
        Me.btnRemove.Visible = CType(resources.GetObject("btnRemove.Visible"), Boolean)
        '
        'btnAdd
        '
        Me.btnAdd.AccessibleDescription = resources.GetString("btnAdd.AccessibleDescription")
        Me.btnAdd.AccessibleName = resources.GetString("btnAdd.AccessibleName")
        Me.btnAdd.Anchor = CType(resources.GetObject("btnAdd.Anchor"), System.Windows.Forms.AnchorStyles)
        Me.btnAdd.BackgroundImage = CType(resources.GetObject("btnAdd.BackgroundImage"), System.Drawing.Image)
        Me.btnAdd.Dock = CType(resources.GetObject("btnAdd.Dock"), System.Windows.Forms.DockStyle)
        Me.btnAdd.Enabled = CType(resources.GetObject("btnAdd.Enabled"), Boolean)
        Me.ErrorProvider1.SetError(Me.btnAdd, resources.GetString("btnAdd.Error"))
        Me.btnAdd.FlatStyle = CType(resources.GetObject("btnAdd.FlatStyle"), System.Windows.Forms.FlatStyle)
        Me.btnAdd.Font = CType(resources.GetObject("btnAdd.Font"), System.Drawing.Font)
        Me.ErrorProvider1.SetIconAlignment(Me.btnAdd, CType(resources.GetObject("btnAdd.IconAlignment"), System.Windows.Forms.ErrorIconAlignment))
        Me.ErrorProvider1.SetIconPadding(Me.btnAdd, CType(resources.GetObject("btnAdd.IconPadding"), Integer))
        Me.btnAdd.Image = CType(resources.GetObject("btnAdd.Image"), System.Drawing.Image)
        Me.btnAdd.ImageAlign = CType(resources.GetObject("btnAdd.ImageAlign"), System.Drawing.ContentAlignment)
        Me.btnAdd.ImageIndex = CType(resources.GetObject("btnAdd.ImageIndex"), Integer)
        Me.btnAdd.ImeMode = CType(resources.GetObject("btnAdd.ImeMode"), System.Windows.Forms.ImeMode)
        Me.btnAdd.Location = CType(resources.GetObject("btnAdd.Location"), System.Drawing.Point)
        Me.btnAdd.Name = "btnAdd"
        Me.btnAdd.RightToLeft = CType(resources.GetObject("btnAdd.RightToLeft"), System.Windows.Forms.RightToLeft)
        Me.btnAdd.Size = CType(resources.GetObject("btnAdd.Size"), System.Drawing.Size)
        Me.btnAdd.TabIndex = CType(resources.GetObject("btnAdd.TabIndex"), Integer)
        Me.btnAdd.Text = resources.GetString("btnAdd.Text")
        Me.btnAdd.TextAlign = CType(resources.GetObject("btnAdd.TextAlign"), System.Drawing.ContentAlignment)
        Me.btnAdd.Visible = CType(resources.GetObject("btnAdd.Visible"), Boolean)
        '
        'cboForeignKeyColumn
        '
        Me.cboForeignKeyColumn.AccessibleDescription = resources.GetString("cboForeignKeyColumn.AccessibleDescription")
        Me.cboForeignKeyColumn.AccessibleName = resources.GetString("cboForeignKeyColumn.AccessibleName")
        Me.cboForeignKeyColumn.Anchor = CType(resources.GetObject("cboForeignKeyColumn.Anchor"), System.Windows.Forms.AnchorStyles)
        Me.cboForeignKeyColumn.BackgroundImage = CType(resources.GetObject("cboForeignKeyColumn.BackgroundImage"), System.Drawing.Image)
        Me.cboForeignKeyColumn.DisplayMember = "Name"
        Me.cboForeignKeyColumn.Dock = CType(resources.GetObject("cboForeignKeyColumn.Dock"), System.Windows.Forms.DockStyle)
        Me.cboForeignKeyColumn.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList
        Me.cboForeignKeyColumn.Enabled = CType(resources.GetObject("cboForeignKeyColumn.Enabled"), Boolean)
        Me.ErrorProvider1.SetError(Me.cboForeignKeyColumn, resources.GetString("cboForeignKeyColumn.Error"))
        Me.cboForeignKeyColumn.Font = CType(resources.GetObject("cboForeignKeyColumn.Font"), System.Drawing.Font)
        Me.ErrorProvider1.SetIconAlignment(Me.cboForeignKeyColumn, CType(resources.GetObject("cboForeignKeyColumn.IconAlignment"), System.Windows.Forms.ErrorIconAlignment))
        Me.ErrorProvider1.SetIconPadding(Me.cboForeignKeyColumn, CType(resources.GetObject("cboForeignKeyColumn.IconPadding"), Integer))
        Me.cboForeignKeyColumn.ImeMode = CType(resources.GetObject("cboForeignKeyColumn.ImeMode"), System.Windows.Forms.ImeMode)
        Me.cboForeignKeyColumn.IntegralHeight = CType(resources.GetObject("cboForeignKeyColumn.IntegralHeight"), Boolean)
        Me.cboForeignKeyColumn.ItemHeight = CType(resources.GetObject("cboForeignKeyColumn.ItemHeight"), Integer)
        Me.cboForeignKeyColumn.Location = CType(resources.GetObject("cboForeignKeyColumn.Location"), System.Drawing.Point)
        Me.cboForeignKeyColumn.MaxDropDownItems = CType(resources.GetObject("cboForeignKeyColumn.MaxDropDownItems"), Integer)
        Me.cboForeignKeyColumn.MaxLength = CType(resources.GetObject("cboForeignKeyColumn.MaxLength"), Integer)
        Me.cboForeignKeyColumn.Name = "cboForeignKeyColumn"
        Me.cboForeignKeyColumn.RightToLeft = CType(resources.GetObject("cboForeignKeyColumn.RightToLeft"), System.Windows.Forms.RightToLeft)
        Me.cboForeignKeyColumn.Size = CType(resources.GetObject("cboForeignKeyColumn.Size"), System.Drawing.Size)
        Me.cboForeignKeyColumn.TabIndex = CType(resources.GetObject("cboForeignKeyColumn.TabIndex"), Integer)
        Me.cboForeignKeyColumn.Text = resources.GetString("cboForeignKeyColumn.Text")
        Me.cboForeignKeyColumn.ValueMember = "Name"
        Me.cboForeignKeyColumn.Visible = CType(resources.GetObject("cboForeignKeyColumn.Visible"), Boolean)
        '
        'lblKeyColumn
        '
        Me.lblKeyColumn.AccessibleDescription = resources.GetString("lblKeyColumn.AccessibleDescription")
        Me.lblKeyColumn.AccessibleName = resources.GetString("lblKeyColumn.AccessibleName")
        Me.lblKeyColumn.Anchor = CType(resources.GetObject("lblKeyColumn.Anchor"), System.Windows.Forms.AnchorStyles)
        Me.lblKeyColumn.AutoSize = CType(resources.GetObject("lblKeyColumn.AutoSize"), Boolean)
        Me.lblKeyColumn.Dock = CType(resources.GetObject("lblKeyColumn.Dock"), System.Windows.Forms.DockStyle)
        Me.lblKeyColumn.Enabled = CType(resources.GetObject("lblKeyColumn.Enabled"), Boolean)
        Me.ErrorProvider1.SetError(Me.lblKeyColumn, resources.GetString("lblKeyColumn.Error"))
        Me.lblKeyColumn.Font = CType(resources.GetObject("lblKeyColumn.Font"), System.Drawing.Font)
        Me.ErrorProvider1.SetIconAlignment(Me.lblKeyColumn, CType(resources.GetObject("lblKeyColumn.IconAlignment"), System.Windows.Forms.ErrorIconAlignment))
        Me.ErrorProvider1.SetIconPadding(Me.lblKeyColumn, CType(resources.GetObject("lblKeyColumn.IconPadding"), Integer))
        Me.lblKeyColumn.Image = CType(resources.GetObject("lblKeyColumn.Image"), System.Drawing.Image)
        Me.lblKeyColumn.ImageAlign = CType(resources.GetObject("lblKeyColumn.ImageAlign"), System.Drawing.ContentAlignment)
        Me.lblKeyColumn.ImageIndex = CType(resources.GetObject("lblKeyColumn.ImageIndex"), Integer)
        Me.lblKeyColumn.ImeMode = CType(resources.GetObject("lblKeyColumn.ImeMode"), System.Windows.Forms.ImeMode)
        Me.lblKeyColumn.Location = CType(resources.GetObject("lblKeyColumn.Location"), System.Drawing.Point)
        Me.lblKeyColumn.Name = "lblKeyColumn"
        Me.lblKeyColumn.RightToLeft = CType(resources.GetObject("lblKeyColumn.RightToLeft"), System.Windows.Forms.RightToLeft)
        Me.lblKeyColumn.Size = CType(resources.GetObject("lblKeyColumn.Size"), System.Drawing.Size)
        Me.lblKeyColumn.TabIndex = CType(resources.GetObject("lblKeyColumn.TabIndex"), Integer)
        Me.lblKeyColumn.Text = resources.GetString("lblKeyColumn.Text")
        Me.lblKeyColumn.TextAlign = CType(resources.GetObject("lblKeyColumn.TextAlign"), System.Drawing.ContentAlignment)
        Me.lblKeyColumn.Visible = CType(resources.GetObject("lblKeyColumn.Visible"), Boolean)
        '
        'cboKeyColumn
        '
        Me.cboKeyColumn.AccessibleDescription = resources.GetString("cboKeyColumn.AccessibleDescription")
        Me.cboKeyColumn.AccessibleName = resources.GetString("cboKeyColumn.AccessibleName")
        Me.cboKeyColumn.Anchor = CType(resources.GetObject("cboKeyColumn.Anchor"), System.Windows.Forms.AnchorStyles)
        Me.cboKeyColumn.BackgroundImage = CType(resources.GetObject("cboKeyColumn.BackgroundImage"), System.Drawing.Image)
        Me.cboKeyColumn.DisplayMember = "Name"
        Me.cboKeyColumn.Dock = CType(resources.GetObject("cboKeyColumn.Dock"), System.Windows.Forms.DockStyle)
        Me.cboKeyColumn.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList
        Me.cboKeyColumn.Enabled = CType(resources.GetObject("cboKeyColumn.Enabled"), Boolean)
        Me.ErrorProvider1.SetError(Me.cboKeyColumn, resources.GetString("cboKeyColumn.Error"))
        Me.cboKeyColumn.Font = CType(resources.GetObject("cboKeyColumn.Font"), System.Drawing.Font)
        Me.ErrorProvider1.SetIconAlignment(Me.cboKeyColumn, CType(resources.GetObject("cboKeyColumn.IconAlignment"), System.Windows.Forms.ErrorIconAlignment))
        Me.ErrorProvider1.SetIconPadding(Me.cboKeyColumn, CType(resources.GetObject("cboKeyColumn.IconPadding"), Integer))
        Me.cboKeyColumn.ImeMode = CType(resources.GetObject("cboKeyColumn.ImeMode"), System.Windows.Forms.ImeMode)
        Me.cboKeyColumn.IntegralHeight = CType(resources.GetObject("cboKeyColumn.IntegralHeight"), Boolean)
        Me.cboKeyColumn.ItemHeight = CType(resources.GetObject("cboKeyColumn.ItemHeight"), Integer)
        Me.cboKeyColumn.Location = CType(resources.GetObject("cboKeyColumn.Location"), System.Drawing.Point)
        Me.cboKeyColumn.MaxDropDownItems = CType(resources.GetObject("cboKeyColumn.MaxDropDownItems"), Integer)
        Me.cboKeyColumn.MaxLength = CType(resources.GetObject("cboKeyColumn.MaxLength"), Integer)
        Me.cboKeyColumn.Name = "cboKeyColumn"
        Me.cboKeyColumn.RightToLeft = CType(resources.GetObject("cboKeyColumn.RightToLeft"), System.Windows.Forms.RightToLeft)
        Me.cboKeyColumn.Size = CType(resources.GetObject("cboKeyColumn.Size"), System.Drawing.Size)
        Me.cboKeyColumn.TabIndex = CType(resources.GetObject("cboKeyColumn.TabIndex"), Integer)
        Me.cboKeyColumn.Text = resources.GetString("cboKeyColumn.Text")
        Me.cboKeyColumn.ValueMember = "Name"
        Me.cboKeyColumn.Visible = CType(resources.GetObject("cboKeyColumn.Visible"), Boolean)
        '
        'lvConstraint
        '
        Me.lvConstraint.AccessibleDescription = resources.GetString("lvConstraint.AccessibleDescription")
        Me.lvConstraint.AccessibleName = resources.GetString("lvConstraint.AccessibleName")
        Me.lvConstraint.Alignment = CType(resources.GetObject("lvConstraint.Alignment"), System.Windows.Forms.ListViewAlignment)
        Me.lvConstraint.Anchor = CType(resources.GetObject("lvConstraint.Anchor"), System.Windows.Forms.AnchorStyles)
        Me.lvConstraint.BackgroundImage = CType(resources.GetObject("lvConstraint.BackgroundImage"), System.Drawing.Image)
        Me.lvConstraint.Columns.AddRange(New System.Windows.Forms.ColumnHeader() {Me.chKeyColumns, Me.chForeignKeyColumns})
        Me.lvConstraint.Dock = CType(resources.GetObject("lvConstraint.Dock"), System.Windows.Forms.DockStyle)
        Me.lvConstraint.Enabled = CType(resources.GetObject("lvConstraint.Enabled"), Boolean)
        Me.ErrorProvider1.SetError(Me.lvConstraint, resources.GetString("lvConstraint.Error"))
        Me.lvConstraint.Font = CType(resources.GetObject("lvConstraint.Font"), System.Drawing.Font)
        Me.lvConstraint.FullRowSelect = True
        Me.lvConstraint.HideSelection = False
        Me.ErrorProvider1.SetIconAlignment(Me.lvConstraint, CType(resources.GetObject("lvConstraint.IconAlignment"), System.Windows.Forms.ErrorIconAlignment))
        Me.ErrorProvider1.SetIconPadding(Me.lvConstraint, CType(resources.GetObject("lvConstraint.IconPadding"), Integer))
        Me.lvConstraint.ImeMode = CType(resources.GetObject("lvConstraint.ImeMode"), System.Windows.Forms.ImeMode)
        Me.lvConstraint.LabelWrap = CType(resources.GetObject("lvConstraint.LabelWrap"), Boolean)
        Me.lvConstraint.Location = CType(resources.GetObject("lvConstraint.Location"), System.Drawing.Point)
        Me.lvConstraint.MultiSelect = False
        Me.lvConstraint.Name = "lvConstraint"
        Me.lvConstraint.RightToLeft = CType(resources.GetObject("lvConstraint.RightToLeft"), System.Windows.Forms.RightToLeft)
        Me.lvConstraint.Size = CType(resources.GetObject("lvConstraint.Size"), System.Drawing.Size)
        Me.lvConstraint.TabIndex = CType(resources.GetObject("lvConstraint.TabIndex"), Integer)
        Me.lvConstraint.Text = resources.GetString("lvConstraint.Text")
        Me.lvConstraint.View = System.Windows.Forms.View.Details
        Me.lvConstraint.Visible = CType(resources.GetObject("lvConstraint.Visible"), Boolean)
        '
        'chKeyColumns
        '
        Me.chKeyColumns.Text = resources.GetString("chKeyColumns.Text")
        Me.chKeyColumns.TextAlign = CType(resources.GetObject("chKeyColumns.TextAlign"), System.Windows.Forms.HorizontalAlignment)
        Me.chKeyColumns.Width = CType(resources.GetObject("chKeyColumns.Width"), Integer)
        '
        'chForeignKeyColumns
        '
        Me.chForeignKeyColumns.Text = resources.GetString("chForeignKeyColumns.Text")
        Me.chForeignKeyColumns.TextAlign = CType(resources.GetObject("chForeignKeyColumns.TextAlign"), System.Windows.Forms.HorizontalAlignment)
        Me.chForeignKeyColumns.Width = CType(resources.GetObject("chForeignKeyColumns.Width"), Integer)
        '
        'lblForeignKeyColumn
        '
        Me.lblForeignKeyColumn.AccessibleDescription = resources.GetString("lblForeignKeyColumn.AccessibleDescription")
        Me.lblForeignKeyColumn.AccessibleName = resources.GetString("lblForeignKeyColumn.AccessibleName")
        Me.lblForeignKeyColumn.Anchor = CType(resources.GetObject("lblForeignKeyColumn.Anchor"), System.Windows.Forms.AnchorStyles)
        Me.lblForeignKeyColumn.AutoSize = CType(resources.GetObject("lblForeignKeyColumn.AutoSize"), Boolean)
        Me.lblForeignKeyColumn.Dock = CType(resources.GetObject("lblForeignKeyColumn.Dock"), System.Windows.Forms.DockStyle)
        Me.lblForeignKeyColumn.Enabled = CType(resources.GetObject("lblForeignKeyColumn.Enabled"), Boolean)
        Me.ErrorProvider1.SetError(Me.lblForeignKeyColumn, resources.GetString("lblForeignKeyColumn.Error"))
        Me.lblForeignKeyColumn.Font = CType(resources.GetObject("lblForeignKeyColumn.Font"), System.Drawing.Font)
        Me.ErrorProvider1.SetIconAlignment(Me.lblForeignKeyColumn, CType(resources.GetObject("lblForeignKeyColumn.IconAlignment"), System.Windows.Forms.ErrorIconAlignment))
        Me.ErrorProvider1.SetIconPadding(Me.lblForeignKeyColumn, CType(resources.GetObject("lblForeignKeyColumn.IconPadding"), Integer))
        Me.lblForeignKeyColumn.Image = CType(resources.GetObject("lblForeignKeyColumn.Image"), System.Drawing.Image)
        Me.lblForeignKeyColumn.ImageAlign = CType(resources.GetObject("lblForeignKeyColumn.ImageAlign"), System.Drawing.ContentAlignment)
        Me.lblForeignKeyColumn.ImageIndex = CType(resources.GetObject("lblForeignKeyColumn.ImageIndex"), Integer)
        Me.lblForeignKeyColumn.ImeMode = CType(resources.GetObject("lblForeignKeyColumn.ImeMode"), System.Windows.Forms.ImeMode)
        Me.lblForeignKeyColumn.Location = CType(resources.GetObject("lblForeignKeyColumn.Location"), System.Drawing.Point)
        Me.lblForeignKeyColumn.Name = "lblForeignKeyColumn"
        Me.lblForeignKeyColumn.RightToLeft = CType(resources.GetObject("lblForeignKeyColumn.RightToLeft"), System.Windows.Forms.RightToLeft)
        Me.lblForeignKeyColumn.Size = CType(resources.GetObject("lblForeignKeyColumn.Size"), System.Drawing.Size)
        Me.lblForeignKeyColumn.TabIndex = CType(resources.GetObject("lblForeignKeyColumn.TabIndex"), Integer)
        Me.lblForeignKeyColumn.Text = resources.GetString("lblForeignKeyColumn.Text")
        Me.lblForeignKeyColumn.TextAlign = CType(resources.GetObject("lblForeignKeyColumn.TextAlign"), System.Drawing.ContentAlignment)
        Me.lblForeignKeyColumn.Visible = CType(resources.GetObject("lblForeignKeyColumn.Visible"), Boolean)
        '
        'lblAcceptRejectRule
        '
        Me.lblAcceptRejectRule.AccessibleDescription = resources.GetString("lblAcceptRejectRule.AccessibleDescription")
        Me.lblAcceptRejectRule.AccessibleName = resources.GetString("lblAcceptRejectRule.AccessibleName")
        Me.lblAcceptRejectRule.Anchor = CType(resources.GetObject("lblAcceptRejectRule.Anchor"), System.Windows.Forms.AnchorStyles)
        Me.lblAcceptRejectRule.AutoSize = CType(resources.GetObject("lblAcceptRejectRule.AutoSize"), Boolean)
        Me.lblAcceptRejectRule.Dock = CType(resources.GetObject("lblAcceptRejectRule.Dock"), System.Windows.Forms.DockStyle)
        Me.lblAcceptRejectRule.Enabled = CType(resources.GetObject("lblAcceptRejectRule.Enabled"), Boolean)
        Me.ErrorProvider1.SetError(Me.lblAcceptRejectRule, resources.GetString("lblAcceptRejectRule.Error"))
        Me.lblAcceptRejectRule.Font = CType(resources.GetObject("lblAcceptRejectRule.Font"), System.Drawing.Font)
        Me.ErrorProvider1.SetIconAlignment(Me.lblAcceptRejectRule, CType(resources.GetObject("lblAcceptRejectRule.IconAlignment"), System.Windows.Forms.ErrorIconAlignment))
        Me.ErrorProvider1.SetIconPadding(Me.lblAcceptRejectRule, CType(resources.GetObject("lblAcceptRejectRule.IconPadding"), Integer))
        Me.lblAcceptRejectRule.Image = CType(resources.GetObject("lblAcceptRejectRule.Image"), System.Drawing.Image)
        Me.lblAcceptRejectRule.ImageAlign = CType(resources.GetObject("lblAcceptRejectRule.ImageAlign"), System.Drawing.ContentAlignment)
        Me.lblAcceptRejectRule.ImageIndex = CType(resources.GetObject("lblAcceptRejectRule.ImageIndex"), Integer)
        Me.lblAcceptRejectRule.ImeMode = CType(resources.GetObject("lblAcceptRejectRule.ImeMode"), System.Windows.Forms.ImeMode)
        Me.lblAcceptRejectRule.Location = CType(resources.GetObject("lblAcceptRejectRule.Location"), System.Drawing.Point)
        Me.lblAcceptRejectRule.Name = "lblAcceptRejectRule"
        Me.lblAcceptRejectRule.RightToLeft = CType(resources.GetObject("lblAcceptRejectRule.RightToLeft"), System.Windows.Forms.RightToLeft)
        Me.lblAcceptRejectRule.Size = CType(resources.GetObject("lblAcceptRejectRule.Size"), System.Drawing.Size)
        Me.lblAcceptRejectRule.TabIndex = CType(resources.GetObject("lblAcceptRejectRule.TabIndex"), Integer)
        Me.lblAcceptRejectRule.Text = resources.GetString("lblAcceptRejectRule.Text")
        Me.lblAcceptRejectRule.TextAlign = CType(resources.GetObject("lblAcceptRejectRule.TextAlign"), System.Drawing.ContentAlignment)
        Me.lblAcceptRejectRule.Visible = CType(resources.GetObject("lblAcceptRejectRule.Visible"), Boolean)
        '
        'cboAcceptRejectRule
        '
        Me.cboAcceptRejectRule.AccessibleDescription = resources.GetString("cboAcceptRejectRule.AccessibleDescription")
        Me.cboAcceptRejectRule.AccessibleName = resources.GetString("cboAcceptRejectRule.AccessibleName")
        Me.cboAcceptRejectRule.Anchor = CType(resources.GetObject("cboAcceptRejectRule.Anchor"), System.Windows.Forms.AnchorStyles)
        Me.cboAcceptRejectRule.BackgroundImage = CType(resources.GetObject("cboAcceptRejectRule.BackgroundImage"), System.Drawing.Image)
        Me.cboAcceptRejectRule.DisplayMember = "Name"
        Me.cboAcceptRejectRule.Dock = CType(resources.GetObject("cboAcceptRejectRule.Dock"), System.Windows.Forms.DockStyle)
        Me.cboAcceptRejectRule.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList
        Me.cboAcceptRejectRule.Enabled = CType(resources.GetObject("cboAcceptRejectRule.Enabled"), Boolean)
        Me.ErrorProvider1.SetError(Me.cboAcceptRejectRule, resources.GetString("cboAcceptRejectRule.Error"))
        Me.cboAcceptRejectRule.Font = CType(resources.GetObject("cboAcceptRejectRule.Font"), System.Drawing.Font)
        Me.ErrorProvider1.SetIconAlignment(Me.cboAcceptRejectRule, CType(resources.GetObject("cboAcceptRejectRule.IconAlignment"), System.Windows.Forms.ErrorIconAlignment))
        Me.ErrorProvider1.SetIconPadding(Me.cboAcceptRejectRule, CType(resources.GetObject("cboAcceptRejectRule.IconPadding"), Integer))
        Me.cboAcceptRejectRule.ImeMode = CType(resources.GetObject("cboAcceptRejectRule.ImeMode"), System.Windows.Forms.ImeMode)
        Me.cboAcceptRejectRule.IntegralHeight = CType(resources.GetObject("cboAcceptRejectRule.IntegralHeight"), Boolean)
        Me.cboAcceptRejectRule.ItemHeight = CType(resources.GetObject("cboAcceptRejectRule.ItemHeight"), Integer)
        Me.cboAcceptRejectRule.Location = CType(resources.GetObject("cboAcceptRejectRule.Location"), System.Drawing.Point)
        Me.cboAcceptRejectRule.MaxDropDownItems = CType(resources.GetObject("cboAcceptRejectRule.MaxDropDownItems"), Integer)
        Me.cboAcceptRejectRule.MaxLength = CType(resources.GetObject("cboAcceptRejectRule.MaxLength"), Integer)
        Me.cboAcceptRejectRule.Name = "cboAcceptRejectRule"
        Me.cboAcceptRejectRule.RightToLeft = CType(resources.GetObject("cboAcceptRejectRule.RightToLeft"), System.Windows.Forms.RightToLeft)
        Me.cboAcceptRejectRule.Size = CType(resources.GetObject("cboAcceptRejectRule.Size"), System.Drawing.Size)
        Me.cboAcceptRejectRule.TabIndex = CType(resources.GetObject("cboAcceptRejectRule.TabIndex"), Integer)
        Me.cboAcceptRejectRule.Text = resources.GetString("cboAcceptRejectRule.Text")
        Me.cboAcceptRejectRule.ValueMember = "Name"
        Me.cboAcceptRejectRule.Visible = CType(resources.GetObject("cboAcceptRejectRule.Visible"), Boolean)
        '
        'lblDeleteRule
        '
        Me.lblDeleteRule.AccessibleDescription = resources.GetString("lblDeleteRule.AccessibleDescription")
        Me.lblDeleteRule.AccessibleName = resources.GetString("lblDeleteRule.AccessibleName")
        Me.lblDeleteRule.Anchor = CType(resources.GetObject("lblDeleteRule.Anchor"), System.Windows.Forms.AnchorStyles)
        Me.lblDeleteRule.AutoSize = CType(resources.GetObject("lblDeleteRule.AutoSize"), Boolean)
        Me.lblDeleteRule.Dock = CType(resources.GetObject("lblDeleteRule.Dock"), System.Windows.Forms.DockStyle)
        Me.lblDeleteRule.Enabled = CType(resources.GetObject("lblDeleteRule.Enabled"), Boolean)
        Me.ErrorProvider1.SetError(Me.lblDeleteRule, resources.GetString("lblDeleteRule.Error"))
        Me.lblDeleteRule.Font = CType(resources.GetObject("lblDeleteRule.Font"), System.Drawing.Font)
        Me.ErrorProvider1.SetIconAlignment(Me.lblDeleteRule, CType(resources.GetObject("lblDeleteRule.IconAlignment"), System.Windows.Forms.ErrorIconAlignment))
        Me.ErrorProvider1.SetIconPadding(Me.lblDeleteRule, CType(resources.GetObject("lblDeleteRule.IconPadding"), Integer))
        Me.lblDeleteRule.Image = CType(resources.GetObject("lblDeleteRule.Image"), System.Drawing.Image)
        Me.lblDeleteRule.ImageAlign = CType(resources.GetObject("lblDeleteRule.ImageAlign"), System.Drawing.ContentAlignment)
        Me.lblDeleteRule.ImageIndex = CType(resources.GetObject("lblDeleteRule.ImageIndex"), Integer)
        Me.lblDeleteRule.ImeMode = CType(resources.GetObject("lblDeleteRule.ImeMode"), System.Windows.Forms.ImeMode)
        Me.lblDeleteRule.Location = CType(resources.GetObject("lblDeleteRule.Location"), System.Drawing.Point)
        Me.lblDeleteRule.Name = "lblDeleteRule"
        Me.lblDeleteRule.RightToLeft = CType(resources.GetObject("lblDeleteRule.RightToLeft"), System.Windows.Forms.RightToLeft)
        Me.lblDeleteRule.Size = CType(resources.GetObject("lblDeleteRule.Size"), System.Drawing.Size)
        Me.lblDeleteRule.TabIndex = CType(resources.GetObject("lblDeleteRule.TabIndex"), Integer)
        Me.lblDeleteRule.Text = resources.GetString("lblDeleteRule.Text")
        Me.lblDeleteRule.TextAlign = CType(resources.GetObject("lblDeleteRule.TextAlign"), System.Drawing.ContentAlignment)
        Me.lblDeleteRule.Visible = CType(resources.GetObject("lblDeleteRule.Visible"), Boolean)
        '
        'cboDeleteRule
        '
        Me.cboDeleteRule.AccessibleDescription = resources.GetString("cboDeleteRule.AccessibleDescription")
        Me.cboDeleteRule.AccessibleName = resources.GetString("cboDeleteRule.AccessibleName")
        Me.cboDeleteRule.Anchor = CType(resources.GetObject("cboDeleteRule.Anchor"), System.Windows.Forms.AnchorStyles)
        Me.cboDeleteRule.BackgroundImage = CType(resources.GetObject("cboDeleteRule.BackgroundImage"), System.Drawing.Image)
        Me.cboDeleteRule.DisplayMember = "Name"
        Me.cboDeleteRule.Dock = CType(resources.GetObject("cboDeleteRule.Dock"), System.Windows.Forms.DockStyle)
        Me.cboDeleteRule.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList
        Me.cboDeleteRule.Enabled = CType(resources.GetObject("cboDeleteRule.Enabled"), Boolean)
        Me.ErrorProvider1.SetError(Me.cboDeleteRule, resources.GetString("cboDeleteRule.Error"))
        Me.cboDeleteRule.Font = CType(resources.GetObject("cboDeleteRule.Font"), System.Drawing.Font)
        Me.ErrorProvider1.SetIconAlignment(Me.cboDeleteRule, CType(resources.GetObject("cboDeleteRule.IconAlignment"), System.Windows.Forms.ErrorIconAlignment))
        Me.ErrorProvider1.SetIconPadding(Me.cboDeleteRule, CType(resources.GetObject("cboDeleteRule.IconPadding"), Integer))
        Me.cboDeleteRule.ImeMode = CType(resources.GetObject("cboDeleteRule.ImeMode"), System.Windows.Forms.ImeMode)
        Me.cboDeleteRule.IntegralHeight = CType(resources.GetObject("cboDeleteRule.IntegralHeight"), Boolean)
        Me.cboDeleteRule.ItemHeight = CType(resources.GetObject("cboDeleteRule.ItemHeight"), Integer)
        Me.cboDeleteRule.Location = CType(resources.GetObject("cboDeleteRule.Location"), System.Drawing.Point)
        Me.cboDeleteRule.MaxDropDownItems = CType(resources.GetObject("cboDeleteRule.MaxDropDownItems"), Integer)
        Me.cboDeleteRule.MaxLength = CType(resources.GetObject("cboDeleteRule.MaxLength"), Integer)
        Me.cboDeleteRule.Name = "cboDeleteRule"
        Me.cboDeleteRule.RightToLeft = CType(resources.GetObject("cboDeleteRule.RightToLeft"), System.Windows.Forms.RightToLeft)
        Me.cboDeleteRule.Size = CType(resources.GetObject("cboDeleteRule.Size"), System.Drawing.Size)
        Me.cboDeleteRule.TabIndex = CType(resources.GetObject("cboDeleteRule.TabIndex"), Integer)
        Me.cboDeleteRule.Text = resources.GetString("cboDeleteRule.Text")
        Me.cboDeleteRule.ValueMember = "Name"
        Me.cboDeleteRule.Visible = CType(resources.GetObject("cboDeleteRule.Visible"), Boolean)
        '
        'lblUpdateRule
        '
        Me.lblUpdateRule.AccessibleDescription = resources.GetString("lblUpdateRule.AccessibleDescription")
        Me.lblUpdateRule.AccessibleName = resources.GetString("lblUpdateRule.AccessibleName")
        Me.lblUpdateRule.Anchor = CType(resources.GetObject("lblUpdateRule.Anchor"), System.Windows.Forms.AnchorStyles)
        Me.lblUpdateRule.AutoSize = CType(resources.GetObject("lblUpdateRule.AutoSize"), Boolean)
        Me.lblUpdateRule.Dock = CType(resources.GetObject("lblUpdateRule.Dock"), System.Windows.Forms.DockStyle)
        Me.lblUpdateRule.Enabled = CType(resources.GetObject("lblUpdateRule.Enabled"), Boolean)
        Me.ErrorProvider1.SetError(Me.lblUpdateRule, resources.GetString("lblUpdateRule.Error"))
        Me.lblUpdateRule.Font = CType(resources.GetObject("lblUpdateRule.Font"), System.Drawing.Font)
        Me.ErrorProvider1.SetIconAlignment(Me.lblUpdateRule, CType(resources.GetObject("lblUpdateRule.IconAlignment"), System.Windows.Forms.ErrorIconAlignment))
        Me.ErrorProvider1.SetIconPadding(Me.lblUpdateRule, CType(resources.GetObject("lblUpdateRule.IconPadding"), Integer))
        Me.lblUpdateRule.Image = CType(resources.GetObject("lblUpdateRule.Image"), System.Drawing.Image)
        Me.lblUpdateRule.ImageAlign = CType(resources.GetObject("lblUpdateRule.ImageAlign"), System.Drawing.ContentAlignment)
        Me.lblUpdateRule.ImageIndex = CType(resources.GetObject("lblUpdateRule.ImageIndex"), Integer)
        Me.lblUpdateRule.ImeMode = CType(resources.GetObject("lblUpdateRule.ImeMode"), System.Windows.Forms.ImeMode)
        Me.lblUpdateRule.Location = CType(resources.GetObject("lblUpdateRule.Location"), System.Drawing.Point)
        Me.lblUpdateRule.Name = "lblUpdateRule"
        Me.lblUpdateRule.RightToLeft = CType(resources.GetObject("lblUpdateRule.RightToLeft"), System.Windows.Forms.RightToLeft)
        Me.lblUpdateRule.Size = CType(resources.GetObject("lblUpdateRule.Size"), System.Drawing.Size)
        Me.lblUpdateRule.TabIndex = CType(resources.GetObject("lblUpdateRule.TabIndex"), Integer)
        Me.lblUpdateRule.Text = resources.GetString("lblUpdateRule.Text")
        Me.lblUpdateRule.TextAlign = CType(resources.GetObject("lblUpdateRule.TextAlign"), System.Drawing.ContentAlignment)
        Me.lblUpdateRule.Visible = CType(resources.GetObject("lblUpdateRule.Visible"), Boolean)
        '
        'cboUpdateRule
        '
        Me.cboUpdateRule.AccessibleDescription = resources.GetString("cboUpdateRule.AccessibleDescription")
        Me.cboUpdateRule.AccessibleName = resources.GetString("cboUpdateRule.AccessibleName")
        Me.cboUpdateRule.Anchor = CType(resources.GetObject("cboUpdateRule.Anchor"), System.Windows.Forms.AnchorStyles)
        Me.cboUpdateRule.BackgroundImage = CType(resources.GetObject("cboUpdateRule.BackgroundImage"), System.Drawing.Image)
        Me.cboUpdateRule.DisplayMember = "Name"
        Me.cboUpdateRule.Dock = CType(resources.GetObject("cboUpdateRule.Dock"), System.Windows.Forms.DockStyle)
        Me.cboUpdateRule.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList
        Me.cboUpdateRule.Enabled = CType(resources.GetObject("cboUpdateRule.Enabled"), Boolean)
        Me.ErrorProvider1.SetError(Me.cboUpdateRule, resources.GetString("cboUpdateRule.Error"))
        Me.cboUpdateRule.Font = CType(resources.GetObject("cboUpdateRule.Font"), System.Drawing.Font)
        Me.ErrorProvider1.SetIconAlignment(Me.cboUpdateRule, CType(resources.GetObject("cboUpdateRule.IconAlignment"), System.Windows.Forms.ErrorIconAlignment))
        Me.ErrorProvider1.SetIconPadding(Me.cboUpdateRule, CType(resources.GetObject("cboUpdateRule.IconPadding"), Integer))
        Me.cboUpdateRule.ImeMode = CType(resources.GetObject("cboUpdateRule.ImeMode"), System.Windows.Forms.ImeMode)
        Me.cboUpdateRule.IntegralHeight = CType(resources.GetObject("cboUpdateRule.IntegralHeight"), Boolean)
        Me.cboUpdateRule.ItemHeight = CType(resources.GetObject("cboUpdateRule.ItemHeight"), Integer)
        Me.cboUpdateRule.Location = CType(resources.GetObject("cboUpdateRule.Location"), System.Drawing.Point)
        Me.cboUpdateRule.MaxDropDownItems = CType(resources.GetObject("cboUpdateRule.MaxDropDownItems"), Integer)
        Me.cboUpdateRule.MaxLength = CType(resources.GetObject("cboUpdateRule.MaxLength"), Integer)
        Me.cboUpdateRule.Name = "cboUpdateRule"
        Me.cboUpdateRule.RightToLeft = CType(resources.GetObject("cboUpdateRule.RightToLeft"), System.Windows.Forms.RightToLeft)
        Me.cboUpdateRule.Size = CType(resources.GetObject("cboUpdateRule.Size"), System.Drawing.Size)
        Me.cboUpdateRule.TabIndex = CType(resources.GetObject("cboUpdateRule.TabIndex"), Integer)
        Me.cboUpdateRule.Text = resources.GetString("cboUpdateRule.Text")
        Me.cboUpdateRule.ValueMember = "Name"
        Me.cboUpdateRule.Visible = CType(resources.GetObject("cboUpdateRule.Visible"), Boolean)
        '
        'ErrorProvider1
        '
        Me.ErrorProvider1.ContainerControl = Me
        Me.ErrorProvider1.Icon = CType(resources.GetObject("ErrorProvider1.Icon"), System.Drawing.Icon)
        '
        'UForeignKeyConstraint
        '
        Me.AccessibleDescription = resources.GetString("$this.AccessibleDescription")
        Me.AccessibleName = resources.GetString("$this.AccessibleName")
        Me.AutoScroll = CType(resources.GetObject("$this.AutoScroll"), Boolean)
        Me.AutoScrollMargin = CType(resources.GetObject("$this.AutoScrollMargin"), System.Drawing.Size)
        Me.AutoScrollMinSize = CType(resources.GetObject("$this.AutoScrollMinSize"), System.Drawing.Size)
        Me.BackgroundImage = CType(resources.GetObject("$this.BackgroundImage"), System.Drawing.Image)
        Me.Controls.Add(Me.gbKeys)
        Me.Controls.Add(Me.lblConstraintName)
        Me.Controls.Add(Me.txtConstraintName)
        Me.Controls.Add(Me.lblUpdateRule)
        Me.Controls.Add(Me.lblAcceptRejectRule)
        Me.Controls.Add(Me.cboUpdateRule)
        Me.Controls.Add(Me.cboAcceptRejectRule)
        Me.Controls.Add(Me.lblDeleteRule)
        Me.Controls.Add(Me.cboDeleteRule)
        Me.Enabled = CType(resources.GetObject("$this.Enabled"), Boolean)
        Me.ErrorProvider1.SetError(Me, resources.GetString("$this.Error"))
        Me.Font = CType(resources.GetObject("$this.Font"), System.Drawing.Font)
        Me.ErrorProvider1.SetIconAlignment(Me, CType(resources.GetObject("$this.IconAlignment"), System.Windows.Forms.ErrorIconAlignment))
        Me.ErrorProvider1.SetIconPadding(Me, CType(resources.GetObject("$this.IconPadding"), Integer))
        Me.ImeMode = CType(resources.GetObject("$this.ImeMode"), System.Windows.Forms.ImeMode)
        Me.Location = CType(resources.GetObject("$this.Location"), System.Drawing.Point)
        Me.Name = "UForeignKeyConstraint"
        Me.RightToLeft = CType(resources.GetObject("$this.RightToLeft"), System.Windows.Forms.RightToLeft)
        Me.Size = CType(resources.GetObject("$this.Size"), System.Drawing.Size)
        Me.gbKeys.ResumeLayout(False)
        Me.ResumeLayout(False)

    End Sub

#End Region

    Private mOk As Boolean

    Public Event ValueChanged As EventHandler

    Private Sub URelation_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
        AddHandler cboUpdateRule.SelectionChangeCommitted, AddressOf OnValueChanged
        AddHandler cboDeleteRule.SelectionChangeCommitted, AddressOf OnValueChanged
        AddHandler cboAcceptRejectRule.SelectionChangeCommitted, AddressOf OnValueChanged
    End Sub

    Private Sub txtConstraintName_TextChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles txtConstraintName.TextChanged
        OnValueChanged(Me, New EventArgs)
    End Sub
    Private Sub txtConstraintName_Validated(ByVal sender As Object, ByVal e As System.EventArgs) Handles txtConstraintName.Validated
        If txtConstraintName.Text = "" Then
            ErrorProvider1.SetError(txtConstraintName, "Constraint Name is required.")
        Else
            ErrorProvider1.SetError(txtConstraintName, "")
        End If
    End Sub
    Private Sub cboParentTable_SelectionChangeCommitted(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles cboParentTable.SelectionChangeCommitted
        Dim lvi As ListViewItem
        For Each lvi In lvConstraint.Items
            lvi.SubItems(0).Text = ""
        Next : lvi = Nothing
        '-------------------
        cboKeyColumn.Items.Clear()

        Dim dc As DataColumn
        For Each dc In CType(cboParentTable.SelectedItem, DataTable).Columns
            cboKeyColumn.Items.Add(dc)
        Next : dc = Nothing
        '-------------------
        OnValueChanged(Me, New EventArgs)
    End Sub
    Private Sub cboChildTable_SelectionChangeCommitted(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles cboChildTable.SelectionChangeCommitted
        Dim lvi As ListViewItem
        For Each lvi In lvConstraint.Items
            lvi.SubItems(1).Text = ""
        Next : lvi = Nothing
        '-------------------
        cboForeignKeyColumn.Items.Clear()

        Dim dc As DataColumn
        For Each dc In CType(cboChildTable.SelectedItem, DataTable).Columns
            cboForeignKeyColumn.Items.Add(dc)
        Next : dc = Nothing
        '-------------------
        OnValueChanged(Me, New EventArgs)
    End Sub
    Private Sub lvConstraint_SelectedIndexChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles lvConstraint.SelectedIndexChanged
        If lvConstraint.SelectedItems.Count = 0 Then
            cboKeyColumn.SelectedItem = Nothing
            cboForeignKeyColumn.SelectedItem = Nothing
            If btnAdd.Enabled Then
                btnRemove.Enabled = False
                lblKeyColumn.Enabled = False : cboKeyColumn.Enabled = False
                lblForeignKeyColumn.Enabled = False : cboForeignKeyColumn.Enabled = False
            End If
        Else
            cboKeyColumn.Text = lvConstraint.SelectedItems(0).SubItems(0).Text
            cboForeignKeyColumn.Text = lvConstraint.SelectedItems(0).SubItems(1).Text
            If btnAdd.Enabled Then
                btnRemove.Enabled = True
                lblKeyColumn.Enabled = True : cboKeyColumn.Enabled = True
                lblForeignKeyColumn.Enabled = True : cboForeignKeyColumn.Enabled = True
            End If
        End If
    End Sub
    Private Sub btnAdd_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnAdd.Click
        Dim lvi As New ListViewItem("")
        lvi.SubItems.Add("")
        lvConstraint.Items.Add(lvi)
        lvi.Selected = True
        lvi = Nothing
        OnValueChanged(Me, New EventArgs)
    End Sub
    Private Sub btnRemove_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnRemove.Click
        Dim i As Integer = lvConstraint.SelectedItems(0).Index
        If lvConstraint.Items.Count > 1 Then
            If i = lvConstraint.Items.Count - 1 Then
                lvConstraint.Items(i - 1).Selected = True
            Else
                lvConstraint.Items(i + 1).Selected = True
            End If
        End If
        lvConstraint.Items(i).Remove()
        OnValueChanged(Me, New EventArgs)
    End Sub
    Private Sub cboKeyColumn_SelectionChangeCommitted(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles cboKeyColumn.SelectionChangeCommitted
        If lvConstraint.SelectedItems.Count > 0 Then
            lvConstraint.SelectedItems(0).SubItems(0).Text = cboKeyColumn.Text
            OnValueChanged(Me, New EventArgs)
        End If
    End Sub
    Private Sub cboForeignKeyColumn_SelectionChangeCommitted(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles cboForeignKeyColumn.SelectionChangeCommitted
        If lvConstraint.SelectedItems.Count > 0 Then
            lvConstraint.SelectedItems(0).SubItems(1).Text = cboForeignKeyColumn.Text
            OnValueChanged(Me, New EventArgs)
        End If
    End Sub

    Private Sub IsOk()
        mOk = (txtConstraintName.Text <> "")
        If mOk Then
            If lvConstraint.Items.Count = 0 Then
                mOk = False
            Else
                Dim lvi As ListViewItem
                For Each lvi In lvConstraint.Items
                    If lvi.SubItems(0).Text = "" Or lvi.SubItems(1).Text = "" Then
                        mOk = False
                        Exit For
                    End If
                Next : lvi = Nothing
            End If
        End If
    End Sub

    Protected Sub OnValueChanged(ByVal sender As System.Object, ByVal e As System.EventArgs)
        IsOk()
        RaiseEvent ValueChanged(Me, New EventArgs)
    End Sub

    Public Function GetNewConstraint() As ForeignKeyConstraint
        Dim parentColumns() As DataColumn
        Dim childColumns() As DataColumn

        Dim lvi As ListViewItem, i As Integer
        For Each lvi In lvConstraint.Items
            ReDim Preserve parentColumns(i) : parentColumns(i) = CType(cboParentTable.SelectedItem, DataTable).Columns(lvi.SubItems(0).Text)
            ReDim Preserve childColumns(i) : childColumns(i) = CType(cboChildTable.SelectedItem, DataTable).Columns(lvi.SubItems(1).Text)
            i += 1
        Next : lvi = Nothing

        GetNewConstraint = New ForeignKeyConstraint(txtConstraintName.Text, parentColumns, childColumns)

        parentColumns = Nothing
        childColumns = Nothing
    End Function

    Public Property Ok() As Boolean
        Get
            Return mOk
        End Get
        Set(ByVal Value As Boolean)
            mOk = False
        End Set
    End Property

    Public Sub Prepare(ByVal presentation As Model10.Presentation)
        cboParentTable.Items.Clear() : cboChildTable.Items.Clear()

        Dim tbl As Model10.Table
        For Each tbl In presentation.Tables
            cboParentTable.Items.Add(tbl.DataTable) : cboChildTable.Items.Add(tbl.DataTable)
        Next : tbl = Nothing
        '-------------------
        cboUpdateRule.Items.Clear()
        cboUpdateRule.Items.Add(Rule.None)
        cboUpdateRule.Items.Add(Rule.Cascade)
        cboUpdateRule.Items.Add(Rule.SetNull)
        cboUpdateRule.Items.Add(Rule.SetDefault)
        cboUpdateRule.SelectedItem = Rule.None
        '-------------------
        cboDeleteRule.Items.Clear()
        cboDeleteRule.Items.Add(Rule.None)
        cboDeleteRule.Items.Add(Rule.Cascade)
        cboDeleteRule.Items.Add(Rule.SetNull)
        cboDeleteRule.Items.Add(Rule.SetDefault)
        cboDeleteRule.SelectedItem = Rule.None
        '-------------------
        cboAcceptRejectRule.Items.Clear()
        cboAcceptRejectRule.Items.Add(AcceptRejectRule.None)
        cboAcceptRejectRule.Items.Add(AcceptRejectRule.Cascade)
        cboAcceptRejectRule.SelectedItem = AcceptRejectRule.None
        '-------------------
        lblKeyColumn.Enabled = False : cboKeyColumn.Enabled = False
        lblForeignKeyColumn.Enabled = False : cboForeignKeyColumn.Enabled = False
        btnRemove.Enabled = False
        lvConstraint.Items.Clear()
    End Sub

    Public Sub Read(ByVal foreignKeyConstraint As ForeignKeyConstraint)
        txtConstraintName.Text = foreignKeyConstraint.ConstraintName
        cboParentTable.SelectedItem = foreignKeyConstraint.RelatedTable
        cboChildTable.SelectedItem = foreignKeyConstraint.Table

        Dim dc As DataColumn, i As Integer
        For Each dc In foreignKeyConstraint.RelatedColumns
            Dim lvi As New ListViewItem(dc.ColumnName)
            lvi.SubItems.Add(foreignKeyConstraint.Columns(i).ColumnName)
            lvConstraint.Items.Add(lvi)
            lvi = Nothing
            i += 1
        Next : dc = Nothing

        cboUpdateRule.SelectedItem = foreignKeyConstraint.UpdateRule
        cboDeleteRule.SelectedItem = foreignKeyConstraint.DeleteRule
        cboAcceptRejectRule.SelectedItem = foreignKeyConstraint.AcceptRejectRule
    End Sub
    Public Sub Write(ByVal foreignKeyConstraint As ForeignKeyConstraint)
        foreignKeyConstraint.ConstraintName = txtConstraintName.Text

        foreignKeyConstraint.UpdateRule = CType(cboUpdateRule.SelectedItem, Rule)
        foreignKeyConstraint.DeleteRule = CType(cboDeleteRule.SelectedItem, Rule)
        foreignKeyConstraint.AcceptRejectRule = CType(cboAcceptRejectRule.SelectedItem, AcceptRejectRule)
    End Sub
End Class